<template>
    <div>
        <el-dialog
        :title="title"
        :visible.sync="show"
        width="30%">



        <el-form ref="form"  label-width="80px">
            <el-form-item :label="item.label" :key="index">
                <el-input v-model="item.username"></el-input>
            </el-form-item>
        </el-form>



        <span slot="footer" class="dialog-footer">
            <el-button @click="no">取 消</el-button>
            <el-button type="primary" @click="yes">确 定</el-button>
        </span>
        </el-dialog>

    </div>
</template>

<script>
    export default {
        props:{
            title:String,
            show:Boolean,
            from:{
                required:true,
                type:Array,
                default:()=>[]
            },
        },
        data() {
            return {
                
            }
        },
        mounted(){

        },
        methods:{
            no(){
                this.$emit('no',false)
            },
            yes(){
                this.$emit('yes',false)
            }
        }
    }
</script>

<style lang="sass" scoped>

</style>